import request from '@/utils/request'

//获取所有酒店的所有房间
export function roomListApi(params) {
  return request({
    url: '/admin/mszs/room/roomPageList',
    method: 'get',
    params
  })
}

// 所有酒店列表
export function groggeryListApi(params) {
  return request({
    url: `/admin/mszs/hotel/pageList`,
    method: 'get',
    params
  })
}

// 新增酒店房间
export function addRoomApi(data) {
  return request({
    url: `/admin/mszs/room/insert`,
    method: 'post',
    data
  })
}


// 根据房间 id 查询房间
export function getRoomApi(params) {
  return request({
    url: `/admin/mszs/room/load`,
    method: 'get',
    params
  })
}

// 编辑酒店房间
export function editRoomApi(data) {
  return request({
    url: `/admin/mszs/room/update`,
    method: 'post',
    data
  })
}

// 删除酒店房间
export function delRoomApi(params) {
  return request({
    url: `/admin/mszs/room/delete`,
    method: 'get',
    params
  })
}
//根据酒店 id 查询酒店的所有房间
export function seeHotalRoomApi(params) {
  return request({
    url: `/admin/mszs/room/pageList`,
    method: 'get',
    params
  })
}

//查询所有未入住房间
export function selectStatusApi(params) {
  return request({
    url: `/admin/mszs/room/notCheckInList`,
    method: 'get',
    params
  })
}

//查询所有已入住房间
export function statusCheckInApi(params) {
  return request({
    url: `/admin/mszs/room/checkInList`,
    method: 'get',
    params
  })
}

//获取房型
export function selectRoomTypeApi(params) {
  return request({
    url: `/admin/mszs/room/type/pageList`,
    method: 'get',
    params
  })
}


